package com.mhc.suzuki.constant;

/**
 * @Description: 流程审核意见参数
 * @author: kanon
 * @create: 2017/10/26 19:21
 */
public enum FlowApprovedEnum {

    /**
     * 流程审核意见参数
     **/
    SALEMANAGERAPPROVED("salesManagerApproved"),              //业务经理审核意见
    AUDITORAPPROVED("auditorApproved"),    //审核员审核意见
    AUDITORMANAGERAPPROVED("auditorManagerApproved"),            //审核经理审核意见
    RISKLEADERAPPROVED("riskLeaderApproved"), //风管领导审核意见
    SALEMANMODIFIEDAPPLY("salesmanModifiedApply"),         //业务员修改发起申请意见
    COOPERATIVEAPPROVED("cooperativeApproved"),                  //协同发展审核意见
    RISKCONTROLAPPROVED("riskControlApproved"),        //风控小组审核意见
    ISGPSINSTALLED("isGpsInstalled"),         //资产保全是否正确安装GPS意见
    ISFILECORRECT("isFileCorrect");        //内勤检查资料是否正确意见


    private String approved;

    FlowApprovedEnum(String approved) {
        this.approved = approved;
    }

    public static boolean verify(String approved) {
        for (FlowApprovedEnum flowRoleIdEnum : FlowApprovedEnum.values()) {
            if (flowRoleIdEnum.approved.equals(approved)) {
                return true;
            }
        }
        //没有对应的类型，返回 false
        return false;
    }

}
